package com.patterns.java.bridge;

/**
 * 圆型
 * @author 三多
 * @Time 2021/10/14
 */
public class Circle extends Shape {
    private int x,y,radius;
    public Circle(int x, int y, int radius,Draw draw) {
        super(draw);
        this.x = x;
        this.y = y;
        this.radius = radius;
    }

    /**
     * 画
     */
    @Override
    public void draw() {
        draw.drawCircle(x,y,radius);
    }
}
